<!DOCTYPE html>












  


<html class="theme-next gemini use-motion" lang="en">
<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">


























<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2">

<link rel="stylesheet" href="/css/main.css?v=7.0.0">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=7.0.0">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32.ico?v=7.0.0">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16.ico?v=7.0.0">


  <link rel="mask-icon" href="/images/logo.svg?v=7.0.0" color="#222">







<script id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Gemini',
    version: '7.0.0',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":true,"onmobile":false},
    fancybox: false,
    fastclick: false,
    lazyload: false,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>


  




  <meta name="description" content="2018-7-19更。IntelliJ IDEA 常用配置及快捷键。">
<meta name="keywords" content="IT,Java">
<meta property="og:type" content="article">
<meta property="og:title" content="IntelliJ IDEA 常用配置及快捷键">
<meta property="og:url" content="https://blog-test.jetchen.cn/intellij-idea-config/index.html">
<meta property="og:site_name" content="嘎里三分熟">
<meta property="og:description" content="2018-7-19更。IntelliJ IDEA 常用配置及快捷键。">
<meta property="og:locale" content="en">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968517797454.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968528433585.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968539199573.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968550741550.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968550785980.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968574707984.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968587117627.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968597668540.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968610756949.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/2018/07/idea001.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/2018/07/idea002.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/2018/07/idea003.png">
<meta property="og:image" content="http://blogsource.chenkaikai.com/uploads/2018/07/idea004.png">
<meta property="og:updated_time" content="2019-02-25T15:21:32.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="IntelliJ IDEA 常用配置及快捷键">
<meta name="twitter:description" content="2018-7-19更。IntelliJ IDEA 常用配置及快捷键。">
<meta name="twitter:image" content="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968517797454.png">






  <link rel="canonical" href="https://blog-test.jetchen.cn/intellij-idea-config/">



<script id="page.configurations">
  CONFIG.page = {
    sidebar: "",
  };
</script>

  <title>IntelliJ IDEA 常用配置及快捷键 | 嘎里三分熟</title>
  












  <noscript>
  <style>
  .use-motion .motion-element,
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-title { opacity: initial; }

  .use-motion .logo,
  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="en">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">嘎里三分熟</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
    
    
  </div>

  <div class="site-nav-toggle">
    <button aria-label="Toggle navigation bar">
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>



<nav class="site-nav">
  
    <ul id="menu" class="menu">
      
        
        
        
          
          <li class="menu-item menu-item-home">

    
    
    
      
    

    

    <a href="/" rel="section"><i class="menu-item-icon fa fa-fw fa-home"></i> <br>Home</a>

  </li>
        
        
        
          
          <li class="menu-item menu-item-about">

    
    
    
      
    

    

    <a href="/about-me/" rel="section"><i class="menu-item-icon fa fa-fw fa-user"></i> <br>About</a>

  </li>
        
        
        
          
          <li class="menu-item menu-item-archives">

    
    
    
      
    

    

    <a href="/archives/" rel="section"><i class="menu-item-icon fa fa-fw fa-archive"></i> <br>Archives</a>

  </li>

      
      
    </ul>
  

  

  
</nav>



  



</div>
    </header>

    


    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          
            

          
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://blog-test.jetchen.cn/intellij-idea-config/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="Jet Chen">
      <meta itemprop="description" content>
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="嘎里三分熟">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">IntelliJ IDEA 常用配置及快捷键

              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">

            
            
            

            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">Posted on</span>
              

              
                
              

              <time title="Created: 2018-07-19 11:38:03" itemprop="dateCreated datePublished" datetime="2018-07-19T11:38:03+08:00">2018-07-19</time>
            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">In</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing"><a href="/categories/常用工具/" itemprop="url" rel="index"><span itemprop="name">常用工具</span></a></span>

                
                
              
            </span>
          

          
            
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <p><center>2018-7-19更。IntelliJ IDEA 常用配置及快捷键。</center><br><a id="more"></a></p>
<p></p><h2>一、常用设置</h2><p></p>
<p>    ① 编码：</p><br><p>        <img title="1531968517797454.png" src="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968517797454.png" alt="idea001.png"></p><br><p>    ② 键入提示：默认是不区分大小写的，即输入string并不会提示，我们的目标是键入string会提示String</p><br><p>        <img title="1531968528433585.png" src="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968528433585.png" alt="idea002.png"></p><br><p>    ③ 自动导包：手动整理快捷键：Ctrl+Alt+o</p><br><p>        <img title="1531968539199573.png" src="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968539199573.png" alt="idea003.png"></p><br><p>    ④ maven 设置：</p><br><p>        <img title="1531968550741550.png" src="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968550741550.png"></p><br><p>        <img title="1531968550785980.png" src="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968550785980.png"></p><br><p>    ⑤ 显示内存：</p><br><p>        <img title="1531968574707984.png" src="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968574707984.png" alt="idea005.png"></p><br><p>    ⑥ 关于多行显示 tab ：我只喜欢显示一个tab，平时使用 Ctrl+e 来选择最近打开过的文件</p><br><p>        <img title="1531968587117627.png" src="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968587117627.png" alt="idea006.png"></p><br><p>    ⑦ 鼠标调整当前页字体大小：Ctrl+鼠标滚轮来调整字体大小</p><br><p>        <img title="1531968597668540.png" src="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968597668540.png" alt="idea007.png"></p><br><p>    ⑧ 显示行数和方法线：</p><br><p>        <img title="1531968610756949.png" src="http://blogsource.chenkaikai.com/uploads/image/20180719/1531968610756949.png" alt="idea008.png"></p><br><p>    ⑨ 类注释模板：<br><img class="alignnone wp-image-261 size-full" src="http://blogsource.chenkaikai.com/uploads/2018/07/idea001.png" alt width="1183" height="562"></p><br><p>     ⑩ 方法注释模板：<br>          我的快捷键是 /jet  ，然后按 Tab<br><img class="alignnone size-full wp-image-265" src="http://blogsource.chenkaikai.com/uploads/2018/07/idea002.png" alt width="987" height="360"> <br><img class="alignnone size-full wp-image-266" src="http://blogsource.chenkaikai.com/uploads/2018/07/idea003.png" alt width="903" height="453"><br><br><img class="alignnone wp-image-267 size-full" src="http://blogsource.chenkaikai.com/uploads/2018/07/idea004.png" alt width="1042" height="699"></p><br><p> </p><br><h2>二、常用快捷键</h2><br><p>    1、System.out.println 快捷输出       </p><br><p>           sout  =&gt; System.out.println();</p><br><p>        “abc”.sout  =&gt; System.out.println(“abc”);</p><br><p>    2、for 循环</p><br><p>        list.for</p><br><p>        for(String s:list){</p><br><p>        }</p><br><p>    3、选择一个模块：Ctrl+w</p><br><p>    4、删除一行：Ctrl+y / Ctrl+x</p><br><p>    5、复制选择的内容（不选择则是复制一行）：Ctrl+d</p><br><p>    6、最近打开的文件：Crtl+e</p><br><p>    7、当前文件搜索/整个项目搜索：Ctrl+f，Ctrl+Shift+f</p><br><p>    8、override/implement：Ctrl+o</p><br><p>    9、根据类名/文件名查找文件：Ctrl+n，Ctrl+Shift+n</p><br><p>    10、跳转到指定行：Ctrl+g</p><br><p>    11、git相关：pull：Ctrl+t，commit：Ctrl+k，push：Ctrl+Shift+K</p><br><p>    12、万能去除疑难杂症：Alt+enter</p><br><p>    13、导入包处理：Ctrl+Alt+o</p><br><p>    14、添加try catch 和 折叠 等：Ctrl+Alt+t</p><br><p>    15、括号的前或后：Ctrl+[ / Ctrl+]</p><br><p>    16、文件内查找方法：Ctrl+f12</p><br><p>    17、查找方法被调用的地方：</p><br><p>            ① low一点的，只显示层次：Ctrl+Alt+h（f4 进源码，Alt+8回来）</p><br><p>            ② 强大一点的，推荐：Alt+f7（PS：也可以用在变量上）</p><br><p>    18、查找Controller方法：ctrl+alt+shift+n</p><br><p>    19、强大的 bookmark（便于将方法保存在书签里面）：</p><br><p>            列出：Shift+f11</p><br><p>            改名：Ctrl+Enter</p><br><p>            添加：在方法上 f11</p><br><p>    20、折叠代码，比如for循环：Ctrl+Shift+.</p><br><h2>三、常用插件</h2><br><p>    ① Lombok Plugin 神器，注意maven中也要引入</p><br><p>    ② VisualVM Launcher 内存分析（其实就是原生的）</p><br><p>    ③ Rainbow Brackets 彩虹括号</p><br><p>    ④ Translation 翻译</p><br><p>    ⑤ Maven Helper 解决依赖冲突</p><br><p>    ⑥ GsonFormat json转java实体类</p><br><p> </p>

<!-- wp:paragraph -->
<p></p><p></p><br><!-- /wp:paragraph --><p></p>

      
    </div>

    

    
    
    
	
	<div>
	  
		<div>
    
        <div style="text-align:center;color: #ccc;font-size:14px;">------ 本文结束 <i class="fa fa-fighter-jet"></i> 感谢阅读 ------</div>
    
</div>
	  
	</div>

    

    
      
    
    

    

    <footer class="post-footer">
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/crontab-mysql-command-not-found/" rel="next" title="踩坑记：linux定时器crontab错误 mysql command not found">
                <i class="fa fa-chevron-left"></i> 踩坑记：linux定时器crontab错误 mysql command not found
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/validate-mobile/" rel="prev" title="国际手机号码有效性校验">
                国际手机号码有效性校验 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>


  </div>


          </div>
          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            Table of Contents
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            Overview
          </li>
        </ul>
      

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name">Jet Chen</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          
            <nav class="site-state motion-element">
              
                <div class="site-state-item site-state-posts">
                
                  <a href="/archives/">
                
                    <span class="site-state-item-count">68</span>
                    <span class="site-state-item-name">posts</span>
                  </a>
                </div>
              

              
                
                
                <div class="site-state-item site-state-categories">
                  <a href="/categories/index.html">
                    
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                    <span class="site-state-item-count">33</span>
                    <span class="site-state-item-name">categories</span>
                  </a>
                </div>
              

              
                
                
                <div class="site-state-item site-state-tags">
                  <a href="/tags/index.html">
                    
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                    <span class="site-state-item-count">182</span>
                    <span class="site-state-item-name">tags</span>
                  </a>
                </div>
              
            </nav>
          

          

          
            <div class="links-of-author motion-element">
              
                <span class="links-of-author-item">
                  
                  
                    
                  
                  
                    
                  
                  <a href="https://github.com/goldenJet" title="GitHub &rarr; https://github.com/goldenJet" rel="noopener" target="_blank"><i class="fa fa-fw fa-github"></i>GitHub</a>
                </span>
              
                <span class="links-of-author-item">
                  
                  
                    
                  
                  
                    
                  
                  <a href="https://twitter.com/goldenJ51015801" title="Twitter &rarr; https://twitter.com/goldenJ51015801" rel="noopener" target="_blank"><i class="fa fa-fw fa-twitter"></i>Twitter</a>
                </span>
              
            </div>
          

          

          
          

          
            
          
          

        </div>
      </div>

      
      <!--noindex-->
        <div class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
            
            
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#undefined"><span class="nav-number">1.</span> <span class="nav-text">一、常用设置</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#undefined"><span class="nav-number">2.</span> <span class="nav-text">二、常用快捷键</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#undefined"><span class="nav-number">3.</span> <span class="nav-text">三、常用插件</span></a></li></ol></div>
            

          </div>
        </div>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; 2017 – <span itemprop="copyrightYear">2019</span>
  <span class="with-love" id="animate">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Jet Chen</span>

  

  
</div>









<div class="BbeiAn-info">
    <a target="_blank" href="http://www.miitbeian.gov.cn/" rel="nofollow">浙ICP备17005575号-1</a> <!--a标签中增加nofollow属性，避免爬虫出站。-->| 
	<a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=33010802009043" style="text-decoration:none;padding-left:17px;background:url(/images/icon-police.png) no-repeat left center" rel="nofollow">浙公网安备 33010802009043号</a>	  <!--这里将图标作为了背景，以使得能和后面的文字在同一行-->
</div>

        








        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
          <span id="scrollpercent"><span>0</span>%</span>
        
      </div>
    

    

    

    
  </div>

  

<script>
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>


























  
  <script src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>


  


  <script src="/js/src/utils.js?v=7.0.0"></script>

  <script src="/js/src/motion.js?v=7.0.0"></script>



  
  


  <script src="/js/src/affix.js?v=7.0.0"></script>

  <script src="/js/src/schemes/pisces.js?v=7.0.0"></script>




  
  <script src="/js/src/scrollspy.js?v=7.0.0"></script>
<script src="/js/src/post-details.js?v=7.0.0"></script>



  


  <script src="/js/src/bootstrap.js?v=7.0.0"></script>



  


  


  




  

  

  

  

  

  

  

  

  

  

  

  

  

</body>
</html>
